package com.x.mvp.base.exlist;

import android.view.LayoutInflater;
import android.view.View;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/9/4.
 */

public abstract class BaseViewHolder<D> {
    View itemView;

    public BaseViewHolder(LayoutInflater inflater) {
        itemView = inflater.inflate(getLayoutId(), null);
        ButterKnife.bind(this, itemView);
        itemView.setTag(this);
    }

    abstract public int getLayoutId();

    public View getView() {
        return itemView;
    }

    public void bindView(D data) {
    }
}
